package com.ihg.hiex.admin.dao.account;

import java.util.List;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;
import com.ihg.hiex.entity.user.Assessor;
import com.ihg.hiex.entity.user.AssessorCertificateRecord;

/**
 * 
 * @author dan
 *
 */
@Dao("hibernate")
public interface AssessorCertificateRecordDao {
    
    /**
     * 
     * @param assessor
     * @return
     */
    @Query("FROM AssessorCertificateRecord WHERE disabled = false AND assessor = :assessor ORDER BY createTime DESC")
    public List<AssessorCertificateRecord> list(@Variable("assessor") Assessor assessor);

}
